from django.db import models

class Table(models.Model):
    like = models.IntegerField()
    text = models.CharField(max_length=255)
    date = models.CharField(max_length=255)
    title = models.CharField(max_length=255)


    class Meta:
        managed = False
        db_table = 'data_orin'

    def __str__(self):
        return self.title


class Title(models.Model):
    url = models.CharField(max_length=255)
    title = models.CharField(max_length=255)

    class Meta:
        managed = False
        db_table = 'title'

    def __str__(self):
        return self.title

